﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace CslaDesigner
{
    [Serializable]
    public class DictInfo
    {
        public string Key { get; set; }

        public string Name { get; set; }

        public string DisplayName { get; set; }

    }

    [Serializable]
    public class DictList : BindingList<DictInfo> { }

    public static class Tool
    {
        public static string ToSafeStr(this object obj)
        {
            if (obj == null)
                return string.Empty;
            else
                return obj.ToString();
        }

    }
}
